using System;
using System.Collections.Generic;
using System.Text;
using ECommerce.Library.Web;
using Entity;
using ECommerce.DAL;

namespace AutoGear.BLL
{
    public class CustomerAdmin : AutoGearSiteUser
    {
        private UserRoleType _userRole;
        public UserRoleType UserRole
        {
            get { return _userRole; }
        }
        private UserProfile _profile;
        public UserProfile Profile
        {
            get { return _profile; }
        }
        public CustomerAdmin()
        {

        }

        public CustomerAdmin(TblUser tblUser,
            TblUserProfile tblUserProfile
            )
        {
            base._displayName = tblUserProfile.LastName + ", " + tblUserProfile.FirstName;
            base._loginUserName = tblUser.UserName;
            base._loginPassword = tblUser.Password;
            base._userId = tblUser.UserId;
            this._userRole = UserRoleType.CustomerAdmin;
            this._profile = new UserProfile(tblUserProfile); 
        }

    }
}
